<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="DB/javascript.js"></script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<img alt="" src="img/brain.jpg" onclick="alertme();" ondblclick="alert('You double clicked');">
	<font name = "formex">
		<input type="text" name="mouseX" /> Mouse X Position <br/>
		<input type="text" name="mouseY" /> Mouse Y Position <br/>
	</font>
	<script type="text/javascript" language = "javascript">
		var mie = (navigator.appName == "Microsoft Internet Explorer")?true:false;
		if(!mie)
		{
			document.captureEvents(Event.MOUSEMOVE);
			document.captureEvents(Event.MOUSEDOWN);
			
		}
		document.onmousemove = mousePos(e);
		document.onmousedown = mouseClicked();
		var mouseClick = 0;
		var keyClick = 0;
		var mouseX = 0;
		var mouseY = 0;
		
		function mousePos(e)
		{
			if(!mie)
			{
				mouseX = e.pageX;
				mouseY = e.pageY;
			}
			else
			{
				mouseX = event.clientX + document.body.scrollLeft;
				mouseY = event.clientY + document.body.scrollTop;
			}
			document.formex.mouse.value = mouseX;
			document.formex.mouse.value = mouseY;
			return true;
		}
	</script>
</body>
</html>